﻿using System;
using System.Collections.Generic;
using System.Web;

namespace ToolsService.StringTools
{
    /// <summary>
    ///ToolsLevel0 的摘要说明
    /// </summary>
    public class ToolsLevel0
    {

        public static string[] Split(string str, char separator)
        {
            string[] ss = str.Split(separator);
            for (int i = 0; i < ss.Length ; i++)
            {
                ss[i] = ss[i].Trim();
            }
            return ss;
        }

        public static bool Contains(string[] source, string needfind)
        {
            foreach (string a in source)
            {
                if (a == needfind) return true;
            }
            return false;
        }

        
    }
}
